package cn.kpt.biz.service;

import cn.kpt.beans.vo.ItripImageVO;
import cn.kpt.beans.vo.comment.ItripListCommentVO;
import cn.kpt.beans.vo.comment.ItripScoreCommentVO;
import cn.kpt.beans.vo.comment.ItripSearchCommentVO;
import cn.kpt.utils.Page;

import java.util.List;
import java.util.Map;

public interface CommentService {
    /**
     * 根据酒店ID查询评分
     * @param hotelId
     * @return
     * @throws Exception
     */
    ItripScoreCommentVO getCommentScoreByHotelId(Long hotelId)throws Exception;

    /**
     * 根据动态条件查询评论数量
     * @param param
     * @return
     * @throws Exception
     */
    Integer getItripCommentCountByMap(Map<String, Object> param)throws Exception;

    /**
     * 查询评论列表
     * @param page
     * @param vo
     * @throws Exception
     */
    void getCommentListForPaging(Page<ItripListCommentVO> page, ItripSearchCommentVO vo)throws Exception;

    /**
     * 根据评论ID查询图片
     * @param targetId
     * @return
     * @throws Exception
     */
    List<ItripImageVO> getCommentImageById(Long targetId)throws Exception;
}
